var prefix = ctx + "mfiledetail";
var ajaxfix = ctx + "ajax/mfiledetail";
$(function () {
    var options = {
        url: ajaxfix + "/listdo",
        createUrl: prefix + "/add",
        updateUrl: prefix + "/edit/{id}",
        removeUrl: ajaxfix + "/remove",
        sortName: "id",
        modalName: "列表",
        columns: [{
            checkbox: true
        },
            {
                field: 'id',
                title: 'ID',
                visible: false
            },
            {
                field: 'id',
                title: ''
            },
            {
                field: 'fId',
                title: '影视id'
            },
            {
                field: 'zyk',
                title: 'zyk格式'
            },
            {
                field: 'zykyun',
                title: ''
            },
            {
                title: '操作',
                align: 'center',
                formatter: function (value, row, index) {
                    var actions = [];
                    actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> ');
                    actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>');
                    return actions.join('');
                }
            }]
    };
    $.table.init(options);
});